﻿/**
 * ...
 * @author Sergey Mamyan
 */
package tx.facebook.methods;
import tx.json.JSON;
import neko.Lib;
import neko.Sys;
import tx.facebook.core.Request;

class AuthMethods {
	
	public function new () {}
	
	public function getSession(authToken :String):Dynamic{
		var requst:Request = new Request("auth.getSession");
		requst.setParam("auth_token", authToken);
		requst.call();
		return requst.response;
	}
	
	public function getAppProperties(properties:Array < String > ):Dynamic {
		var requst:Request = new Request("admin.getAppProperties");
		requst.setParam("properties", properties.join(","));
		requst.call();
		return JSON.decode(requst.response);
	}
}